<script type="text/javascript">
    function search(f) {
       if(f.getElementsByTagName('select')[0].selectedIndex == 0) {
            alert('검색조건을 선택하세요');
            f.getElementsByTagName('select')[0].focus();
            return false;
       }
   }

</script>
<table width="100%" cellspacing="0" cellpadding="0" border="0" background="images/sub_bg.gif">
                  <tbody><tr>
                    <td><table width="823" cellspacing="0" cellpadding="0" border="0">
                        <tbody><tr>
                          <td background="images/sub_bg_title.gif"><img width="208" height="70" border="0" src="images/sub_title_menu01.gif"/></td>
                        </tr>
                    </tbody></table></td>
                  </tr>
                  <tr>
                    <td valign="top" height="30"> </td>
                  </tr>
                  <tr>
                    <td><table width="823" cellspacing="0" cellpadding="0" border="0">
                        <tbody><tr>
                          <td valign="top"><table width="98%" cellspacing="0" cellpadding="3" border="0" class="font">
                              <tbody><tr>
                                <td width="30"><img width="1" height="1" src="images/1blank.gif"/></td>
                                <td valign="top"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tbody><tr>
                                      <td><table width="100%" cellspacing="0" cellpadding="0" border="0">
                                          <tbody><tr>
                                            <td width="50"/>
                                            <td>
                                            <form action="members.php" method="get" onsubmit="return search(this);">
                                            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                                <tbody><tr>
                                                  <td width="15"/>
                                                  <td><table cellspacing="0" cellpadding="0" border="0">
                                                      <tbody><tr>
                                                        <td><img width="543" height="1" src="images/sub_company_01_01_line.gif"/></td>
                                                      </tr>
                                                      <tr>
                                                        <td><table width="100%" cellspacing="0" cellpadding="0" border="0" class="font">
                                                            <tbody><tr>


                                                    <td width="40" height="30"><img src="images/sub_company_01_01_img01.gif" alt="" width="11" height="8" /></td>
                                                    <td><label for="division_student">학생
                                                        <input name="division" type="radio" id="division_student" value="student" checked="checked" />
                                                        </label>
                                                      / <label for="division_teacher">선생님
                                                      <input type="radio" name="division" id="division_teacher" value="teacher"/><label></td>

                                                            </tr>
                                                        </tbody></table></td>
                                                      </tr>
                                                      <tr>
                                                        <td><img width="543" height="1" src="images/sub_company_01_01_line.gif"/></td>
                                                      </tr>
                                                      <tr>
                                                        <td><table width="100%" cellspacing="0" cellpadding="0" border="0" class="font">
                                                            <tbody><tr>
                                                              <td width="40" height="30"><p><img width="11" height="8" alt="" src="images/sub_company_01_01_img02.gif"/></p></td>
                                                              <td><label/>
                                                                  <label>
                                                        <select name="condition" class="font" id="select">
                                                          <option {_selectedSelected}>검색조건 선택</option>
                                                          <option value="name" {_nameSelected}>이름</option>
                                                          <option value="birth" {_birthSelected}>생년월일</option>
                                                          <option value="telNum" {_telNumSelected}>연락처</option>

                                                        </select>
                                                                  <input type="text" maxlength="30" size="30" id="textfield" class="font" name="keyword"/>
                                                                  <input type="submit" value="검색" id="button" class="font" name="button"/>
                                                                </label></td>
                                                            </tr>
                                                        </tbody></table></td>
                                                      </tr>
                                                      <tr>
                                                        <td><img width="543" height="1" src="images/sub_company_01_01_line.gif"/></td>
                                                      </tr>
                                                  </tbody></table></td>
                                                </tr>
                                            </tbody></table></form></td>
                                          </tr>
                                      </tbody></table></td>
                                    </tr>
                                    <tr>
                                      <td><form action="memberDetail_proc.php?add" method="post"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                                          <tbody><tr>
                                            <td width="50"/>
                                            <td height="30"> </td>
                                          </tr>
                                          <tr>
                                            <td height="15"/>
                                            <td><table width="100%" cellspacing="0" cellpadding="0" border="0">
                                                <tbody><tr>
                                                  <td width="15"/>
                                                  <td><table width="543" rules="rows" frame="hsides" cellspacing="0" cellpadding="3" bordercolor="#cccccc" border="2" style="border-collapse: collapse;" class="font">
                                                      <tbody><tr>
                                                        <td width="130"><div align="left">학생 이름</div></td>
                                                        <td><div align="left">
                                                            <input type="text" maxlength="8" size="8" value="{_data.mb_name}" id="mb_name" class="font" name="mb_name"/>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">애칭(영문 이름)</div></td>
                                                        <td><div align="left">
                                                            <input type="text" maxlength="20" size="20" value="{_data.mb_nick}" id="textfield3" class="font" name="mb_nick"/>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">레벨</div></td>
                                                        <td><div align="left">
                                                            <label>
                                                            <select id="select2" class="font" name="mb_student_level">
                                                              <option>1</option>
                                                              <option>2</option>
                                                              <option>3</option>
                                                              <option>4</option>
                                                              <option>5</option>
                                                            </select>
                                                            </label>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">성별</div></td>
                                                        <td><div align="left">
                                                        {_data.mb_sex}
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">ID</div></td>
                                                        <td><div align="left">{_data.mb_id}</div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">주민번호</div></td>
                                                        <td><div align="left">{_data.mb_jumin}</div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">우편번호</div></td>
                                                        <td><div align="left">
                                                        {_data.mb_zip1} - {_data.mb_zip2}
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">주소</div></td>
                                                        <td><div align="left">
                                                            {_data.mb_addr1} {_data.mb_addr2}
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">생년월일</div></td>
                                                        <td><div align="left">{_data.mb_birth}</div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">부모님 이름</div></td>
                                                        <td><div align="left">
                                                            <div align="left">
                                                              <input type="text" maxlength="8" size="8" value="{_data.mb_mom_name}" id="textfield8" class="font" name="mb_mom_name"/>
                                                            </div>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">관계</div></td>
                                                        <td><div align="left">
                                                            <input type="text" maxlength="6" size="6" value="{_data.mb_relation}" id="textfield9" class="font" name="mb_relation"/>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">이메일</div></td>
                                                        <td><div align="left">
                                                            <input type="text" maxlength="60" size="60" value="{_data.mb_email}" id="textfield10" class="font" name="mb_email"/>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">연락처 1</div></td>
                                                        <td><div align="left">
                                                            <input type="text" maxlength="20" size="20" value="{_data.mb_tel}" id="textfield11" class="font" name="mb_tel"/>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">연락처 2</div></td>
                                                        <td><div align="left">
                                                          <input type="text" maxlength="20" size="20" value="{_data.mb_tel2}" class="font" name="mb_tel2"/>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">핸드폰</div></td>
                                                        <td><div align="left">
                                                            <input type="text" maxlength="20" size="20" value="000" id="{_data.mb_hp}" class="font" name="mb_hp"/>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">SMS / Eamil 수신여부</div></td>
                                                        <td><div align="left">
                                                            <label>수신
                                                              <input type="radio" checked="checked" value="radio" id="radio3"/>
                                                            </label>
                                                          / 수신거부
                                                          <input type="radio" value="radio" id="radio4"/>
                                                        </div></td>
                                                      </tr>
                                                      <tr>
                                                        <td><div align="left">환불계좌</div></td>
                                                        <td><div align="left">
                                                            <select name="mb_refund_bank" class="font">
                                                              <option>국민</option>
                                                              <option>농협</option>
                                                              <option>신한</option>
                                                            </select>
                                                            <input type="text" maxlength="15" size="15" value="{_data.mb_refund}" id="textfield20" class="font" name="mb_refund"/>
                                                        </div></td>
                                                      </tr>
                                                  </tbody></table></td>
                                                </tr>
                                                <tr>
                                                  <td/>
                                                  <td> </td>
                                                </tr>
                                                <tr>
                                                  <td/>
                                                  <td><input type="submit" value="수정" class="font" />
                                                      <input name="delete" type="button" value="탈퇴" class="font" onclick="window.location.href='memberDetail_proc.php?delete=&mb_id={_data.mb_id}'";/></td>
                                                </tr>
                                            </tbody></table></td>
                                          </tr>
                                          <tr>
                                            <td/>
                                            <td> </td>
                                          </tr>
                                      </tbody></table></form></td>
                                    </tr>
                                </tbody></table></td>
                              </tr>
                          </tbody></table></td>
                        </tr>
                    </tbody></table></td>
                  </tr>
                </tbody></table>
                </form>
